package cn.pasyy.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.pasyy.dao.WebUserInfoMapper;
import cn.pasyy.entity.WebUserInfo;
import cn.pasyy.service.inter.UserInfoService;
@Service
public class UserInfoServiceImpl implements UserInfoService {
	@Autowired
	WebUserInfoMapper webUserInfoMapper;
	
	@Override
	public WebUserInfo getInfoById(int id) {
	
		return	webUserInfoMapper.select_UserInfoById(id);
	}

	@Override
	public boolean updateUserInfo(String nickName, String signature, String head, int sex, int userId) {
		// TODO Auto-generated method stub
		return webUserInfoMapper.update_UserInfoById(nickName, signature, head, sex, userId);
	}

}
